package demo2_i;

public class Derived extends Base{
    public int c = 3;
    public int a = 100;

    //子类中，如何访问父类成员
    //直接访问
    public void func(){
        System.out.println("父类"+super.a);
        System.out.println("子类"+this.a);
        System.out.println(b);
        System.out.println(this.c);
    }
    public void test(){
        System.out.println("derived()test()...");
    }
}
